
#include <stdio.h>
int main()
{
 int a[3]={0,0,0};
 int tongji(int *a);
 tongji(a);
 printf("负数有：%d",a[0]);
 printf("整数有：%d",a[1]);
 printf("零有：%d",a[2]);
return 0;
}

int tongji(int *a)
{int n;
 int i;
 int c;
 printf("输入要统计的次数先");
 scanf("%d",&n);
 for(i=1;i<=n;i++)
     {scanf("%d",&c);
      if(c<0)
           {
            a[0]++;
           }
      if(c==0)
           {
            a[2]++;
           }
      if(c>0)
           {
            a[1]++;
           }




     }
}